
<html>
<body>

<div id="div1">iframe text</div>


<script>
var div1 = document.getElementById("div1");

div1.innerHTML(" <iframe id="frame"  frameborder="0" scrolling="no" style="left:0;position:absolute;" src = "frame.html"></iframe>");
</script>

</body>
</html>